package com.ncloud.crm.mapper;

import com.ncloud.crm.entity.Delegation;
import org.apache.ibatis.annotations.*;

import java.util.List;

/**
 * Created by shiqiang on 2017/4/11.
 */
@Mapper
public interface DelegationMapper {
    @Select(value = { "select * from bs_p_delegation where definition = #{definition}" })
    @Results({ @Result(column = "id", property = "id"), @Result(column = "definition", property = "definition"),
            @Result(column = "classname", property = "className"),@Result(column = "configuration", property = "configuration"),
            @Result(column="construct_item",property="constructItem"),@Result(column="construct_user",property="constructUser"),
            @Result(column="orderBy",property="orderBy")})
    public List<Delegation> getDelegationByDefinition(String definition);

}
